//
//  BuyFuelTest.h
//  SpaceTrader
//
//  Created by Brandon Chastain on 11/19/12.
//  Copyright (c) 2012 The Hex Pistols. All rights reserved.
//
//  This class tests the Player class's buyFuel method.


#ifndef __SpaceTrader__BuyFuelTest__
#define __SpaceTrader__BuyFuelTest__

#include <iostream>
#include <cppunit/extensions/HelperMacros.h>
#include "Player.h"

#endif /* defined(__SpaceTrader__BuyFuelTest__) */

class BuyFuelTest : public CppUnit::TestFixture{
    CPPUNIT_TEST_SUITE(BuyFuelTest);
    CPPUNIT_TEST(testIdealBuy);
    CPPUNIT_TEST(testMoreThanCapacityBuy);
    CPPUNIT_TEST(testAtFullCapacityBuy);
    CPPUNIT_TEST(testNotEnoughCreditsBuy);
    CPPUNIT_TEST_SUITE_END();
public:
    void setUp();
    void tearDown();
    void reset();
    
    void testIdealBuy();
    void testMoreThanCapacityBuy();
    void testAtFullCapacityBuy();
    void testNotEnoughCreditsBuy();
private:
    Player *player;
};